
import 'my_audio_recorder_platform_interface.dart';

class MyAudioRecorder {

  // TODO 3.定义方法，暴露给调用方
  Future<String?> getPlatformVersion() {
    return MyAudioRecorderPlatform.instance.getPlatformVersion();
  }

  Future<String?> startRecord() {
    return MyAudioRecorderPlatform.instance.startRecord();
  }

  Future<String?> continueRecord() {
    return MyAudioRecorderPlatform.instance.continueRecord();
  }

  Future<String?> pauseRecord() {
    return MyAudioRecorderPlatform.instance.pauseRecord();
  }

  Future<String?> stopRecord() {
    return MyAudioRecorderPlatform.instance.stopRecord();
  }

  Future<String?> playAudio(String audioPath) {
    return MyAudioRecorderPlatform.instance.playAudio(audioPath);
  }
}
